package com.nf.service;

import com.nf.entity.Account;

/*
根据项目的需求，而定义方法，更Dao层不一样
 */
public interface AccountService {
    //登陆
    public Account login(String userName, String password);

    //查询余额
    public Integer queryBanlanceById(Integer userid);

    //修改密码
    public boolean updatePassword(String newPassword,String oldPassword,Integer userId);

    //存钱
    public boolean saveMoney(Integer money,Integer userId);

    //取钱
    public boolean getMoney(Integer money,Integer userId);

    //转账
    public boolean transMoney(Integer money,Integer userIdDest,Integer userIdMyself);

}
